import request from '@/utils/request'

// 查询知识点列表
export function listPoints(query) {
  return request({
    url: '/question/know/list',
    method: 'get',
    params: query
  })
}

// 查询知识点详细
export function getPoints(id) {
  return request({
    url: '/question/know/' + id,
    method: 'get'
  })
}

// 新增知识点
export function addPoints(data) {
  return request({
    url: '/question/know',
    method: 'post',
    data: data
  })
}

// 修改知识点
export function updatePoints(data) {
  return request({
    url: '/question/know',
    method: 'put',
    data: data
  })
}

// 删除知识点
export function delPoints(id) {
  return request({
    url: '/question/know/' + id,
    method: 'delete'
  })
}
